<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>글 읽기</title>
<script type="text/javascript">
function go_update() {
	location.href = "ReviewUpdateform.htm?pg=${param.pg}&num=${param.num}";
}
function go_delete() {
	location.href = "ReviewDeleteform.htm?pg=${param.pg}&num=${param.num}";
}
function go_reply() {
	location.href = "ReviewReplyform.htm?pg=${param.pg}&num=${param.num}";
}
</script>
<style type="text/css">
#tbl{border-left:1px solid skyblue;border-top:1px solid  skyblue; }
#tbl th, #tbl td{border-right:1px solid skyblue;border-bottom:1px solid  skyblue; }
</style>
</head>
<body>
<h1>글 읽기</h1>
<a href="ReviewList.htm?pg=${pg}">리스트</a>
<table id="tbl" width="600" cellpadding="0" cellspacing="0">
<tr>
	<th>제목</th>
	<td>${b.rboard_subject}</td>
</tr>
<tr>
	<th>글쓴이</th>
	<td>${b.rboard_writer}</td>
</tr>
<tr>
	<th>날짜</th>
	<td>
		<fmt:formatDate value="${b.rboard_regdate}" pattern="yyyy.MM.dd hh:mm:ss"/>
	</td>
</tr>
<tr>
	<th>조회수</th>
	<td>${b.rboard_hit}</td>
</tr>
<tr>
	<td colspan="2"><pre>${b.rboard_content}</pre></td>
</tr>
<tr>
	<td colspan="2">
		<input type="button" value="수정" onclick="go_update()">
		<input type="button" value="삭제" onclick="go_delete()">
		<input type="button" value="답변" onclick="go_reply()">
	</td>
</tr>
</table>
</body>
</html>